from django.conf.urls import url
from django.urls import include
from django.urls import path
from rest_framework import routers

from mini_api import views

router = routers.DefaultRouter()
router.register('pcdevice',views.PcDeviceViewSet,basename='pcdevice')
router.register('company',views.CompanyViewSet,basename='company')
router.register('process',views.ProcessViewSet,basename='process')



urlpatterns = [
    url(r'^',include(router.urls)),
    path(r"user",views.RegisterView.as_view()),
    path(r"login_wx",views.RPAUserView.as_view()),
    # path(r"run_process",views.ProcessCMDView.as_view()),
    path(r"jobs/list",views.JobListView.as_view()),
    path(r"robot/heartbeat",views.RobotStatusView.as_view()),
]